.my-courses {
  padding: 24px;

  .page-header {
    margin-bottom: 32px;
    text-align: center;

    h1 {
      font-size: 28px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 8px;
    }

    p {
      font-size: 16px;
      color: #666;
      margin: 0;
    }
  }

  .my-courses-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;

    p {
      margin-top: 16px;
      color: #666;
    }
  }

  .empty-state {
    margin: 80px 0;
    text-align: center;
  }

  .course-card {
    height: 100%;
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .course-cover {
      position: relative;
      height: 200px;
      overflow: hidden;
      cursor: pointer;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }

      .course-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }

        .course-overlay {
          opacity: 1;
        }
      }
    }

    .course-title {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 8px;
      cursor: pointer;
      transition: color 0.3s ease;

      &:hover {
        color: #1890ff;
      }
    }

    .course-info {
      .course-teacher {
        color: #666;
        font-size: 14px;
        margin-bottom: 8px;

        .anticon {
          margin-right: 4px;
        }
      }

      .course-stats {
        display: flex;
        justify-content: space-between;
        color: #999;
        font-size: 12px;
        margin-bottom: 12px;

        span {
          display: flex;
          align-items: center;

          .anticon {
            margin-right: 4px;
          }
        }
      }

      .course-progress {
        margin-bottom: 12px;

        .progress-info {
          display: flex;
          justify-content: space-between;
          font-size: 12px;
          color: #666;
          margin-bottom: 4px;
        }
      }

      .course-status {
        text-align: right;
      }
    }

    .ant-card-actions {
      background: #fafafa;
      border-top: 1px solid #f0f0f0;

      li {
        margin: 0;
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .my-courses {
    padding: 16px;

    .page-header {
      h1 {
        font-size: 24px;
      }
    }

    .course-card {
      .course-cover {
        height: 160px;
      }
    }
  }
} 